package com.excellence.service;

import com.excellence.pojo.User;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author 沈秉璋
 * @ClassName UserService
 * @Description TODO
 * @date 2024/4/8 10:43
 * @Version 1.0
 */

public interface UserService {
    int deleteByKey(Integer id);

    int deleteByPrimaryKey(Integer id);

    String insert(User record, List<MultipartFile> files);

    int insertSelective(User record, List<MultipartFile> files);

    User selectByPrimaryKey(Integer id);

    User selectByUsername(String userUsername);

    List<User> selectAll();

    int updateByPrimaryKeySelective(User record, List<MultipartFile> files);

    int updateByPrimaryKey(User record, List<MultipartFile> files);

    User userLogin(User user);
}
